import 'package:flutter/cupertino.dart';

import '../../core/network/request.dart';
import '../../model/home/home_model.dart';

class HomeViewModel extends ChangeNotifier{
  final _request = RequestService();
  Future<ContactListModel> searchContactList() async {
    final data = (await _request.get('/friend/search/contact')).data;
    return ContactListModel.fromJson(data);
  }
}